# Copyright (c) 2019-2024 The STE||AR-Group
#
# SPDX-License-Identifier: BSL-1.0
# Distributed under the Boost Software License, Version 1.0. (See accompanying
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

if(HPX_WITH_TESTS_UNIT)
  add_hpx_pseudo_target(tests.unit.components.parcel_plugins.binary_filter.zlib)
  add_hpx_pseudo_dependencies(
    tests.unit.components
    tests.unit.components.parcel_plugins.binary_filter.zlib
  )
  add_subdirectory(unit)
endif()

if(HPX_WITH_TESTS_REGRESSIONS)
  add_hpx_pseudo_target(
    tests.regressions.components.parcel_plugins.binary_filter.zlib
  )
  add_hpx_pseudo_dependencies(
    tests.regressions.components
    tests.regressions.components.parcel_plugins.binary_filter.zlib
  )
  add_subdirectory(regressions)
endif()

if(HPX_WITH_TESTS_BENCHMARKS)
  add_hpx_pseudo_target(
    tests.performance.components.parcel_plugins.binary_filter.zlib
  )
  add_hpx_pseudo_dependencies(
    tests.performance.components
    tests.performance.components.parcel_plugins.binary_filter.zlib
  )
  add_subdirectory(performance)
endif()

if(HPX_WITH_TESTS_HEADERS)
  add_hpx_header_tests(
    "components.parcel_plugins.binary_filter.zlib"
    HEADERS ${parcel_binary_filter_headers}
    HEADER_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/include"
    COMPONENT_DEPENDENCIES parcel_binary_filter
    EXCLUDE hpx/include/compression_zlib.hpp
  )
endif()
